package net.skyaims.aiolia.chat.litp;

import org.jboss.netty.channel.Channel;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by wujianing on 14-3-10.
 */
public class LitpSession {

    private String token;

    private Channel channel;

    private Map<String, Object> attribute = new HashMap<String, Object>(5);

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public LitpSession(Channel channel) {
        this.channel = channel;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public Object getAttribute(String key) {
        return attribute.get(key);
    }

    public void setAttribute(String key, Object value) {
        this.attribute.put(key, value);
    }

}
